<template>
  <div >
    <h3 >学校名称：{{name |mySlice}}</h3>
    <h3>地址：{{address}}</h3>
    <div>{{x}}</div>
    <button @click="testHello">点我测试全局hello</button>
  </div>
</template>

<script>
    export default {
        name:'School',
        data(){
            return {
                name:'大学ABCDEFG',
                address:'福州',
            }
        },
        methods:{
            testHello(){
                this.hello()
            }
        }
    }
</script>

<style>

</style>